from django.urls import re_path

from oa.apps import OaConfig

from .views import *

app_name = OaConfig.name


urlpatterns = [
    # Static
    # re_path(r'^sales_static/$', SaleStaticView.as_view(), name='sales_static'),
    re_path(r'^$', TankStateListView.as_view(), name='home'),
    re_path(r'^products/$', ProductView.as_view(), name='products'),
    re_path(r'^keg_problems/$', KegProblemView.as_view(), name='keg_problems'),
    re_path(r'^product_batch_detail/(?P<pk>[0-9]+)/$', ProductBatchDetailView.as_view(), name='product_batch_detail'),
    re_path(r'^product_batch_cost/(?P<pk>[0-9]+)/$', ProductBatchCostView.as_view(), name='product_batch_cost'),
    re_path(r'^product_batch_cost_list/$', ProductBatchCostListView.as_view(), name='product_batch_cost_list'),
    re_path(r'^product_batch_material_list/$', ProductBatchMaterialListView.as_view(),
            name='product_batch_material_list'),
    re_path(r'^tank_state_list/$', TankStateListView.as_view(), name='tank_state_list'),
    re_path(r'^material_in_list/$', MaterialInListView.as_view(), name='material_in_list'),
    re_path(r'^material_purchase_list/$', MaterialPurchaseListView.as_view(), name='material_purchase_list'),
    re_path(r'^material_batch_list/$', MaterialBatchStorageListView.as_view(), name='material_batch_list'),
    re_path(r'^product_price_list/$', ProductPriceListView.as_view(), name='tank_state_list'),
]
